package com.taplinker.client.im.rpc.response;

import com.taplinker.client.im.domain.ImDataCenter;
import com.taplinker.client.im.protocol.TapLinkerConversation;
import com.taplinker.core.rpc.Result;

public class Cmd1017 implements ImResponse{

	@Override
	public void yes(Result result) {
		TapLinkerConversation conversation = ImDataCenter.getInstance().getConversation(result.object.toString());
		if(conversation == null) {
			return;
		}
		conversation.setCustomerId("");
		conversation.setCustomerName("");
		ImDataCenter.getInstance().noticeListener(ImDataCenter.QUEUE_REFRESH);
	}

	@Override
	public String getCommand() {
		return "1017";
	}
	
}